package lab02.Test11;

public class Square extends Pectangle{

    //求对角线
    double diagonal(){
        return (Math.sqrt(longth*longth+width*width));
    }
    public void printMyWay(){
        System.out.println(diagonal());
    }
}



